<!DOCTYPE html>
<html lang="auto">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404</title>
    <style>
        /* 通用样式 */
        body {
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #f0f9ff;
            font-family: system-ui, -apple-system, sans-serif;
        }
        .container {
            text-align: center;
            padding: 20px;
            max-width: 600px;
        }
        .error-image {
            max-width: min(65%, 400px);
            height: auto;
            margin-bottom: 25px;
        }
        h1 {
            color: #0369a1;
            font-size: clamp(2rem, 5vw, 2.5rem);
            margin: 0 0 15px 0;
            line-height: 1.2;
        }
        p {
            color: #666;
            font-size: clamp(1rem, 3vw, 1.1rem);
            line-height: 1.6;
            margin: 0 0 30px 0;
        }
        .home-btn {
            display: inline-block;
            padding: 12px 32px;
            background-color: #0284c7;
            color: white;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
            box-shadow: 0 4px 6px rgba(2, 132, 199, 0.1);
        }
        .home-btn:hover {
            background-color: #0369a1;
            transform: translateY(-1px);
            box-shadow: 0 6px 8px rgba(2, 132, 199, 0.2);
        }
        @media (max-width: 480px) {
            .home-btn { display: block; margin: 10px auto; width: 80%; }
        }
    </style>
    <script>
        const userLang = navigator.language.startsWith('zh') ? 'zh' : 'en';
        document.documentElement.lang = userLang;
        const i18n = {
            zh: { title: "页面不存在", desc: "您访问的地址可能已失效或输入有误<br>请检查URL或返回首页", btn: "返回首页" },
            en: { title: "Page Not Found", desc: "The requested URL was not found<br>Please check the address or return to homepage", btn: "Back to Home" }
        };
        document.addEventListener('DOMContentLoaded', () => {
            document.getElementById('title').textContent = i18n[userLang].title;
            document.getElementById('desc').innerHTML = i18n[userLang].desc;
            document.getElementById('homeBtn').textContent = i18n[userLang].btn;
            document.title = i18n[userLang].title;
        });
    </script>
</head>
<body>
    <div class="container">
        <img src="https://www.gxde.top/404.png" alt="404" class="error-image">
        <h1 id="title"></h1>
        <p id="desc"></p>
        <a href="/" id="homeBtn" class="home-btn"></a>
    </div>
</body>
</html>
